package net.barashev.seclub.sample;

import net.barashev.seclub.corpus.Document;
import net.barashev.seclub.corpus.wikipedia.WikipediaFileCorpus;

public class WikipediaCorpusDemo {
    public static void main(String[] args) {
        WikipediaFileCorpus corpus = new WikipediaFileCorpus("/net/barashev/seclub/sample/wikipedia.xml");
        for (Document doc: corpus.getDocuments()) {
            System.out.println("id: " + doc.getID());
            System.out.println(doc.getContent());
            System.out.println("\n\n");
        }
    }
}
